{* load lang file *}
{config_load file="lang`$smarty.const.PLANG`.txt" section="yearView"}

<div class="entry">
    <p>{#explained#}</p>

	

	{* list the selected year's calendars *}
	{foreach from=$months item=myMonth}
		<div class="calendar">
			{calendar year=$thisYear month=$myMonth ignoreNav=true}
		</div>
	{foreachelse}
		<h3>{#noJoy#}</h3>
		<p>{#noJoy2#}</p>
	{/foreach}

    {* check if there are entrie for more than 1 year *}
    <div id="yearLinks">
        {if $years|@count > 1}
        {foreach from=$years item=myYear name=yearLoop}
            {if $myYear == $thisYear}
                <nobr>[ <b>{$myYear}</b> ]</nobr>
            {else}
                <nobr>[ <a href="{$SERVER_ROOT}{$myYear}/">{$myYear}</a> ]</nobr>
            {/if}	
        {/foreach}
        {/if}
    </div>
</div>